package com.uam.utils;

import com.uam.db.model.vo.Login;
import com.uam.db.model.vo.LoginUser;

/**
 * @author uam
 * @create 2023/12/5 10:18
 * @email uam@uam.com
 */
public class LoginUser2Login {

    public static Login loginUser2Login(LoginUser loginUser) {
        Login login = new Login();
        login.setUser(loginUser.getUser());
        login.setRoleName(loginUser.getRoleName());
        login.setPermissions(loginUser.getPermissions());
        login.setUrls(loginUser.getUrls());
        login.setIds(loginUser.getIds());
        return login;

    }
}
